<%@ page contentType="text/json; charset=utf-8" language="java" 
	import="java.io.*"
%><%
	Object jobj = request.getAttribute("json");
	Object jsonObject = jobj;
	boolean scriptTag = false;
	String cb = request.getParameter("callback");
	if (cb != null) {
    	scriptTag = true;
    	response.setContentType("text/javascript");
	} else {
    	response.setContentType("application/x-json");
	}
	if (scriptTag) {
    	out.write(cb + "=(");
	}
	out.write( jsonObject.toString() );
	if (scriptTag) {
    	out.write(");");
	}
%>